extends Node2D

onready var handCard=$".."

enum {S_idle,S_mouseOn}
var state=S_idle setget setState

func setState(value):
	
	state=value
	
	match state:
		S_idle:
			handCard.large=0
		S_mouseOn:
			handCard.large=1
			pass
	
	pass
func _ready():
	# Called when the node is added to the scene for the first time.
	# Initialization here
	pass
func active():
	
	pass
func deactive():
	
	pass


#func _process(delta):
#	# Called every frame. Delta is time since last frame.
#	# Update game logic here.
#	pass


func _on_Area2D_mouse_entered():
	if state==S_idle:
		setState(S_mouseOn)
	pass # replace with function body


func _on_Area2D_mouse_exited():
	if state==S_mouseOn:
		setState(S_idle)
	pass # replace with function body
